package com.zzyl.common.utils;


public class UserThreadLocal {
    private static final ThreadLocal<Long> threadLoacl = new ThreadLocal();

    public static void setUserId(Long userId) {
        threadLoacl.set(userId);
    }

    public static Long getUserId() {
        return threadLoacl.get();
    }

    public static void remove() {
        threadLoacl.remove();
    }

}
